<?php
/**
 * 基础物料与条码关联数据结构
 *
 * @author kamisama.xia@gmail.com 
 * @version 0.1
 */

$db['codebase']=array (
  'columns' =>
  array (
    'bm_id' =>
    array (
      'type' => 'int unsigned',
      'required' => true,
      'width' => 110,
      'hidden' => true,
      'editable' => false,
    ),
    'type' =>
    array (
      'type' => 'tinyint(1)',
      'label' => '条码类型',
      'required' => true,
      'default' => 1,
      'hidden' => true,
      'editable' => false,
      'in_list' => true,
      'default_in_list' => false,
    ),
    'code' =>
    array (
      'type' => 'varchar(200)',
      'editable' => false,
      'label' => '条码',
      'required' => true,
      'hidden' => true,
      'in_list' => true,
      'default_in_list' => false,
    ),
  ),
'index' =>
  array (
    'ind_code' =>
    array (
        'columns' =>
        array (
          0 => 'code',
        ),
        'prefix' => 'unique',
    ),
  ),
  'comment' => '基础物料与条码关联表',
  'engine' => 'innodb',
  'version' => '$Rev:  $',
);
